<?php

namespace Ycr\Pack\exception;

use Throwable;

class HttpErrorException extends \RuntimeException
{

    protected string $func ;

    public function __construct(string $message = "", int $code = 0, ?Throwable $previous = null)
    {
        $this->message = $message;

        parent::__construct($message, $code, $previous);
    }

    /**
     * 获取方法名
     * @access public
     * @return string
     */
    public function getFunc()
    {
        return $this->func;
    }


}